

package com.chuangan.releasetask;

import com.chuangan.releasetask.quartz.QuartzExecute;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;


@MapperScan({"com.chuangan.releasetask.mapper"})
@SpringBootApplication
public class ReleaseTaskApplication {
    public static void main(String[] args) {
        SpringApplication.run(ReleaseTaskApplication.class, args);

        try {
            QuartzExecute.auditDeadlineQuartz("com.chuangan.releasetask.job.AuditJob");
        }
        catch (Exception e) {
            e.printStackTrace();
        }
        try {
            QuartzExecute.taskExpiredQuartz("com.chuangan.releasetask.job.TaskJob");
        } catch (Exception e) {
            e.printStackTrace();
        }
        try {
            QuartzExecute.taskCommitQuartz("com.chuangan.releasetask.job.CommitJob");
        } catch (Exception e) {
            e.printStackTrace();
        }

        System.out.println("服务器启动成功!");
        System.out.println("创安科技，欢迎你。。。");
    }





}
